import * as API from '../api';
export function getList() {
  return function (dispatch) {
    API.getList().then((res) => {
      dispatch({
        type: 'SET_LIST',
        data: res
      })
    })
  }
}